package com.github.m6d21.loading.conflict;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2018/12/17 Mon 14:37:00
 * @since 1.0.0
 */
public class Cipher {

    private String algorithm;

    private Cipher(String algorithm) {
        this.algorithm = algorithm;
    }

    public static Cipher getInstance(String algorithm) {
        Cipher cipher = new Cipher(algorithm);
        return cipher;
    }

    public String encrypt(String message,String ...salt) {
        return "test-module：" + algorithm + "加密:[" + message + salt+"]";
    }

    public String decrypt(String message) {
        return "test-module：" + algorithm + "解密:[" + message + "]";
    }
}
